package com.dhecp.project.business.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.dhecp.core.genericDao.GenericDao;
import com.dhecp.project.business.domain.LogsticsPatternDetails;


/**
 * DAO
 * @author Jason
 */
public interface LogsticsPatternDetailsMapper extends GenericDao<LogsticsPatternDetails, String>  {

	/**
	 * 查询实体
	 * @author Jason
	 */
	List<LogsticsPatternDetails> findLogsticsPatternDetails(Map<String, Object> params);

	/**
	 * 查询单个实体
	 * @author Jason
	 */
	LogsticsPatternDetails queryFirstByGuid(Map<String, Object> params);

	/**
	 * 新增实体
	 * @author Jason
	 */
	int insertLogsticsPatternDetails(LogsticsPatternDetails entity);

	/**
	 * 通过guid修改实体
	 * @author Jason
	 */
	int updateByGuid(LogsticsPatternDetails entity);

	/**
	 * 通过code删除数据
	 * @param LogsticsServerDetails
	 * @return
	 */
	int deleteBycode(LogsticsPatternDetails LogsticsServerDetails);

	/**
	 * 批量新增详情
	 * @param list
	 * @return
	 */
	int insertLogsticsPatternDetailsBatch(List<LogsticsPatternDetails> list);

	/**
	 * 删除已有的详情数据
	 * @param params
	 * @return
	 */
	int deleteLogsticsPatternDetailsMap(Map<String, Object> params);
	
	/**
	 * 查找最高材质附加费
	 * @param names
	 * @return
	 */
	LogsticsPatternDetails findMaxCostByNameCns(@Param("materialNameCns")String materialNameCns, @Param("codeLogsticsPattern")String codeLogsticsPattern);

}
